﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="announcement.aspx.cs" Inherits="Sys_announcement" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>公告设置</title>
    <link rel="stylesheet" type="text/css" href="../js/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../js/themes/icon.css"/> 
   	<link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script> 
   	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>   
   <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>   
   <style type="text/css">
      p{
         margin:0;
     }  
   </style> 
</head>
<body>
    <form id="form1" runat="server">
   <div style="background:#efefef;width:100%;">
		<a href="#" target="mainwin" class="easyui-linkbutton" plain="true">附件相关</a>&nbsp;&nbsp;|
		<a href="../Sys/attachedfiles.aspx" target="mainwin" class="easyui-linkbutton" plain="true">系统附件</a>&nbsp;&nbsp;|
		<a href="../Sys/dataimport.aspx" target="mainwin" class="easyui-linkbutton" plain="true">数据导入</a>
	</div>	 
   <div>
    <div class="columns_left" style="padding:10px 20px 10px 20px">
        <div class="columns_left_padding">
	       <div class="heading_container">
	             <div class="heading_right_top">&nbsp;</div>
	             <h2>附件导出</h2></div>
	       <div class="bucket_container">
	             <div class="bucket_top"><span>&nbsp;</span>&nbsp;</div>
	             <div class="bucket_content" style="padding:0px;">
                   <div class="bucket_content_undone">
                         <div style="border-bottom: 1px dashed #9FBDE5; margin:0px; padding:5px 10px;">
                           <ul>
                             <li>此导出功能使您能选择性的导出数据库中的教师所提交所有项目信息</li> 
                             <li>您不选择导出字段的话则默认导出所有字段</li>
                             <li>导出的文件是MS-Excel格式，下载到本地计算机后您可以进行再编辑</li>
                             <li>一般流程：选择条件-&gt;选择字段-&gt;下载附件再编辑-&gt;上传附件（下面的上传功能） </li>
                           </ul> 
                         </div>
                         <div style="padding:0 20px 20px 20px;" >
                             <table cellpadding="5" cellspacing="5">
                             <tbody>
                             <tr><td colspan="4"><span style="color:#2a5caa">选择条件：</span></td></tr>
                                 <tr>
                                     <td>
                                         申报类型<asp:DropDownList ID="ddlType" runat="server">
                                         </asp:DropDownList></td>
                                     <td>
                                         项目等级<asp:DropDownList ID="ddlPLevel" runat="server">
                                             <asp:ListItem Value="0">所有</asp:ListItem>
                                             <asp:ListItem>校级</asp:ListItem>
                                             <asp:ListItem>省级</asp:ListItem>
                                             <asp:ListItem>国家级</asp:ListItem>
                                         </asp:DropDownList></td>
                                     <td>
                                         项目类型<asp:DropDownList ID="ddlPType" runat="server">
                                             <asp:ListItem Value="0">所有</asp:ListItem>
                                             <asp:ListItem>一般</asp:ListItem>
                                             <asp:ListItem>重点</asp:ListItem>
                                         </asp:DropDownList></td>
                                     <td>
                                         项目所在院系<asp:DropDownList ID="ddlCollege" runat="server">
                                         </asp:DropDownList></td>
                                 </tr>
                                 <tr>
                                     <td>
                                         评审方式<asp:DropDownList ID="ddlPWay" runat="server">
                                             <asp:ListItem Value="0">所有</asp:ListItem>
                                             <asp:ListItem>申报</asp:ListItem>
                                             <asp:ListItem>申报+评审</asp:ListItem>
                                         </asp:DropDownList></td>
                                     <td>
                                         状态<asp:DropDownList ID="ddlPstatus" runat="server">
                                             <asp:ListItem Value="all">所有</asp:ListItem>
                                             <asp:ListItem Value="1">待初审</asp:ListItem>
                                             <asp:ListItem Value="2">待终审</asp:ListItem>
                                             <asp:ListItem Value="3">待中期检查</asp:ListItem>
                                             <asp:ListItem Value="4">待结题</asp:ListItem>
                                             <asp:ListItem Value="5">已结题</asp:ListItem>
                                             <asp:ListItem Value="10">已取消</asp:ListItem>
                                             <asp:ListItem Value="11">延期</asp:ListItem>
                                             <asp:ListItem Value="20">初审退回</asp:ListItem>
                                             <asp:ListItem Value="21">终审退回</asp:ListItem>
                                         </asp:DropDownList></td>
                                     <td colspan="2">
                                         按创建时间从<input id="txtOpen" runat="server" style="width: 130px" type="text" readonly="readOnly" onfocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,isShowClear:true,readOnly:true,maxDate:'#F{$dp.$D(\'txtClose\',{d:-1})||\'2020-10-01\'}'})" />
                                         到<input id="txtClose" runat="server" style="width: 130px"
                                             type="text" readonly="readOnly" onfocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,isShowClear:true,readOnly:true,minDate:'#F{$dp.$D(\'txtOpen\',{d:+1})}',maxDate:'2020-10-01'})" /></td>
                                 </tr>
                                 <tr>
                                     <td>
                                         申报计划编号<asp:TextBox ID="txtPlanCode" runat="server" MaxLength="9" Width="70px"></asp:TextBox></td>
                                     <td>
                                         性质<asp:DropDownList ID="ddlPNature" runat="server" Enabled="False">
                                             <asp:ListItem Selected="True" Value="1">本科</asp:ListItem>
                                             <asp:ListItem Value="2">专科</asp:ListItem>
                                         </asp:DropDownList></td>
                                     <td colspan="2">
                                         按年度（创建年份）<asp:TextBox ID="txtYear" runat="server" MaxLength="4" Width="60px"></asp:TextBox>（两个时间同时填则第一个失效）</td>
                                 </tr>
                                <tr><td colspan="4"><span style="color:#2a5caa">选择导出字段：</span></td></tr> 
                                 <tr>
                                     <td colspan="4">
                                     <div>
                                         <asp:CheckBoxList ID="cblFields" runat="server" RepeatColumns="10" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                             <asp:ListItem Value="type" Selected="True">申报类型</asp:ListItem>
                                             <asp:ListItem Value="pname" Selected="True">项目名称</asp:ListItem>
                                             <asp:ListItem Value="plevel" Selected="True">项目等级</asp:ListItem>
                                             <asp:ListItem Value="ptype" Selected="True">项目类型</asp:ListItem>
                                             <asp:ListItem Value="pway" Selected="True">评审方式</asp:ListItem>
                                             <asp:ListItem Value="pcollege" Selected="True">学院</asp:ListItem>
                                             <asp:ListItem Value="status" Selected="True">状态</asp:ListItem>
                                             <asp:ListItem Value="name" Selected="True">负责人</asp:ListItem>
                                             <asp:ListItem Value="builddate" Selected="True">建设时间</asp:ListItem>
                                             <asp:ListItem Value="approvaldate" Selected="True">立项时间</asp:ListItem>
                                             <asp:ListItem Value="yeardue" Selected="True">年限</asp:ListItem>
                                             <asp:ListItem Value="bz" Selected="True">备注</asp:ListItem>
                                             <asp:ListItem Value="pcode" Selected="True">申报计划编号</asp:ListItem>
                                         </asp:CheckBoxList></div>
                                     </td>
                                 </tr>
                                <tr>
                                    <td align="center" colspan="4">
                                        输入表格的名称：<asp:TextBox ID="txtExcelName" runat="server" MaxLength="50">未命名</asp:TextBox>
                                        <asp:Button ID="btnFileOut" runat="server" Text="导出" CssClass="btn-dy-blue" OnClick="btnFileOut_Click" />
                                    </td>
                                </tr> 
                             </tbody>
                             </table>
                         </div>
                     </div>
                   </div> 
	           <div class="bucket_bottom"><span>&nbsp;</span>
	           </div>
	   </div>
    </div>
    </div>
   <div class="columns_left" style="padding:10px 20px 10px 20px">
        <div class="columns_left_padding">
	       <div class="heading_container">
	             <div class="heading_right_top">&nbsp;</div>
	             <h2>附件上传</h2></div>
	       <div class="bucket_container">
	             <div class="bucket_top"><span>&nbsp;</span>&nbsp;</div>
	             <div class="bucket_content" style="padding:0px;">
                   <div class="bucket_content_undone">
                         <div style="border-bottom: 1px dashed #9FBDE5; margin:0px; padding:5px 10px;">
                           <ul>
                              <li>此上传功能您能上传各种类型的文档至服务器上供用户下载</li> 
                             <li>支持的文件类型有：zip,rar,7zip,doc,docx,exl,exlx,pdf</li>
                             <li>考虑到服务器的空间大小，附件一律不能超过4M</li>
                             <li>附件的文件名不得大于90字节（中文45字），系统会自动为您的附件添加编号</li>
                             <li>下面的文件名称是必填项，您只需填写此文件的文件名即可，可以供教师识别下载。</li>
                           </ul> 
                         </div>
                         <div style="padding: 20px;" >
                             <table cellpadding="5" cellspacing="5">
                             <tbody>
                                 <tr>
                                     <td colspan="2">选择文件：<asp:FileUpload ID="FileUpload1" runat="server" Width="250px" /></td>
                                 </tr>
                                 <tr>
                                     <td colspan="2">
                                         文件名称：<asp:TextBox ID="txtFileName" runat="server" MaxLength="50" Width="172px"></asp:TextBox>附件类型：<asp:DropDownList
                                             ID="ddlFileType" runat="server">
                                             <asp:ListItem Value="文档">文档（.doc,.docx）</asp:ListItem>
                                             <asp:ListItem Value="表格">表格（.xls,.xlsx）</asp:ListItem>
                                             <asp:ListItem Value="其他">其他类型</asp:ListItem>
                                         </asp:DropDownList></td>
                                 </tr>
                                <tr>
                                     <td colspan="2" align="center"><asp:Button ID="btnUpLoad" runat="server" Text="上传文件" CssClass="btn-dy-blue" OnClick="btnUpLoad_Click" /></td>
                                </tr> 
                             </tbody>
                             </table>
                         </div>
                     </div>
                   </div> 
	           <div class="bucket_bottom"><span>&nbsp;</span>
	           </div>
	   </div>
    </div>
    </div> 
    </div>
    </form>
</body>
</html>
